<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck" %>
<%@page import="java.util.*,model.*,util.*,control.*,java.text.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD><TITLE>欢迎！</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type><LINK 
rel="shortcut icon" type=image/x-icon 
href="/sites/all/themes/moovents/favicon.ico">
<META name=Keywords 
content="SEM, SEO, posizionamento online, posizionamento motori di ricerca, ottimizzazione siti, primo sui motori di ricerca, web marketing, social media marketing,strategia di comunicazione online,blog, video online, web community, link popularity, event management, viral marketing, buzz marketing, pr online, public, web advertising, web reputation, organizzazione eventi online e offline, relazioni pubbliche online e offline, promozione eventi, comunicati stampa, segreteria organizzativa, relazioni con i media, friuli venezia giulia, fvg">
<META name=Description 
content="Servizi di SEO, SEM, Web Marketing, Social Media Marketing ed Event management per costruire la reputazione online della tua azienda"><LINK 
rel="shortcut icon" type=image/x-icon 
href="/sites/all/themes/moovents/favicon.ico"><LINK rel=stylesheet type=text/css 
href="links/style.css" 
charset=utf-8 media=screen>
<SCRIPT type=text/javascript 
src="links/jquery.js"></SCRIPT>

<SCRIPT type=text/javascript 
src="links/drupal.js"></SCRIPT>

<SCRIPT type=text/javascript 
src="links/it_bdc7c4ac6091d8e90f254c023d581f0e.js"></SCRIPT>

<SCRIPT type=text/javascript 
src="links/textarea.js"></SCRIPT>

<SCRIPT type=text/javascript>
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/" });
//--><!]]>
</SCRIPT>

<SCRIPT type=text/javascript 
src="links/jquery-1.2.6.min.js"></SCRIPT>

<SCRIPT type=text/javascript 
src="links/jquery.jparallax.js"></SCRIPT>

<SCRIPT type=text/javascript 
src="links/scrolltopcontrol.js"></SCRIPT>
<!--[if lte IE 6]>
  <link href="/sites/all/themes/moovents/css/style-temp-ie.css" rel="stylesheet" type="text/css" />
<![endif]--><!--[if lt IE 7]>
  <script type="text/javascript" src="/sites/all/themes/moovents/jquery.ifixpng2.js"></script>
  <script type="text/javascript">
    $(document).ready(function(){
	    $.ifixpng('/sites/all/themes/moovents/images/pixel.gif');
	    $('img[@src$=.png]').ifixpng();
	    $('div#parallax').ifixpng();
	});
  </script>
<![endif]--><!--[if lte IE 6]>
  <link rel="stylesheet" type="text/css" href="/sites/all/themes/moovents/css/style-temp-ie6.css" media="screen" />
<![endif]-->
<SCRIPT type=text/javascript>
<!--
$(document).ready(function(){
		$('#parallax').jparallax({triggerExposesEdges: true, yorigin:0.5, frameDuration: 20}, {xtravel: 0.02, ytravel: 0.02}, {xtravel: 0.1, ytravel: 0.1}, {xtravel: 0.05, ytravel: 0.05}, {xtravel: 0.04, ytravel: 0.04}, {xtravel: 0.04, ytravel: 0.04}, {xtravel: 0.03, ytravel: 0.03}, {xtravel: 0.025, ytravel: 0.025}, {xtravel: 0.02, ytravel: 0.02}, {xtravel: 0.01, ytravel: 0.01}, {xtravel: 0.005, ytravel: 0.005}, {xtravel: 0.2, ytravel: 0.2});
		}
		);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function popupalt(str) {
  searchWin = window.open(str,'','scrollbars=yes,resizable=no,width=538,height=600, status=no,location=no,toolbar=no');
}
//-->
</SCRIPT>

<SCRIPT type=text/javascript> 
<!--
$(document).ready(function() {
//CANCELLA IL CAMPO DI TESTO "nome e cognome"
$("#edit-nominativo").focus(function(){	
  if (($(this).attr("value")) == "nome e cognome") {
    $(this).attr({
      value: ""
    });
   }
}).blur(function(){
  if (($(this).attr("value")) == "") {
    $(this).attr({
      value: "nome e cognome"
    });
  }
});	
//FINE CANCELLA IL CAMPO DI TESTO "nome e cognome"

//CANCELLA IL CAMPO DI TESTO "e-mail"
$("#edit-email").focus(function(){	
  if (($(this).attr("value")) == "e-mail") {
    $(this).attr({
      value: ""
    });
   }
}).blur(function(){
  if (($(this).attr("value")) == "") {
    $(this).attr({
      value: "e-mail"
    });
  }
});	
//FINE CANCELLA IL CAMPO DI TESTO "e-mail"

//CANCELLA IL CAMPO DI TESTO "richiedi informazioni / preventivo"
$("#edit-richiesta").focus(function(){	
  if (($(this).attr("value")) == "richiedi informazioni / preventivo") {
    $(this).attr({
      value: ""
    });
   }
}).blur(function(){
  if (($(this).attr("value")) == "") {
    $(this).attr({
      value: "richiedi informazioni / preventivo"
    });
  }
});	
//FINE CANCELLA IL CAMPO DI TESTO "richiedi informazioni / preventivo"
});
-->
</SCRIPT>

<META name=GENERATOR content="MSHTML 8.00.7601.17720">
<link href="/WebRoot/Moovents - event management e social media agency, posizionamento online per raggiungere il primo posto sui motori di ricerca_files/style.css" rel="stylesheet" type="text/css">
<link href="/WebRoot/css/gaoy.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
form {
	color: #000;
}
form {
	color: #FFF;
}
.thumbnail span{position:relative;text-decoration: none;}
.thumbnail:hover{background-color:transparent;}
.thumbnail span img{border-width:0;padding:2px;position:absolute;left:-1000px;visibility:hidden;color:#000;text-decoration:none;padding:5px;}
.thumbnail:hover img{visibility:visible;top:-30px;left:0px;}
tr {
	color: #000;
}
tr {
	color: #000;
	font-size: 18px;
}
td {
	font-size: 75%;
	text-align: left;
}
tr {
	color: #990;
}
tr {
	color: #000;
}
tr {
	font-size: 85px;
}
tr {
	font-size: 16px;
}
-->
</style>
<link href="links/css.css" rel="stylesheet" type="text/css" />
</HEAD>
<BODY class="dtu" 
onload="MM_preloadImages('/sites/all/themes/moovents/images/twitter-ov.png','/sites/all/themes/moovents/images/fb-ov.png','/sites/all/themes/moovents/images/digg-ov.png','/sites/all/themes/moovents/images/delicious-ov.png','/sites/all/themes/moovents/images/lnk-approfondisci-ov.gif','/sites/all/themes/moovents/images/linee.png','/sites/all/themes/moovents/images/level1.png','/sites/all/themes/moovents/images/level2.png','/sites/all/themes/moovents/images/level3.png','/sites/all/themes/moovents/images/level3_1.png','/sites/all/themes/moovents/images/level4.png','/sites/all/themes/moovents/images/level5.png','/sites/all/themes/moovents/images/level6.png','/sites/all/themes/moovents/images/level7.png','/sites/all/themes/moovents/images/level8.png','/sites/all/themes/moovents/images/api.png')">
<DIV id=parallax>
<DIV class=ax1><IMG 
style="MARGIN: -180px 0px 0px -750px; WIDTH: 1241px; HEIGHT: 647px" alt="" 
src="links/linee.png"></DIV>
<DIV class=ax1><IMG 
style="MARGIN: 5px 0px 0px -5px; WIDTH: 723px; HEIGHT: 932px" alt="" 
src="links/level1.png"></DIV>
<DIV class=ax1><IMG 
style="MARGIN: -380px 0px 0px 220px; WIDTH: 480px; HEIGHT: 438px" alt="" 
src="links/level2.png"></DIV>
<DIV class=ax1><IMG 
style="MARGIN: -105px 0px 0px -95px; WIDTH: 295px; HEIGHT: 284px" alt="" 
src="links/level3.png"></DIV>
<DIV class=ax1><IMG 
style="MARGIN: 120px 0px 0px -890px; WIDTH: 295px; HEIGHT: 284px" alt="" 
src="links/level3_1.png"></DIV>
<DIV class=ax2><IMG 
style="MARGIN: -140px 0px 0px -730px; WIDTH: 190px; HEIGHT: 178px" alt="" 
src="links/level4.png"></DIV>
<DIV class=ax1><IMG 
style="MARGIN: 50px 0px 0px -160px; WIDTH: 150px; HEIGHT: 158px" alt="" 
src="links/level5.png"></DIV>
<DIV class=ax1><IMG 
style="MARGIN: -120px 0px 0px -200px; WIDTH: 150px; HEIGHT: 158px" alt="" 
src="links/level6.png"></DIV>
<DIV class=ax1><IMG 
style="MARGIN: 40px 0px 0px -280px; WIDTH: 99px; HEIGHT: 94px" alt="" 
src="links/level7.png"></DIV>
<DIV class=ax2><IMG 
style="MARGIN: -60px 0px 0px -430px; WIDTH: 99px; HEIGHT: 94px" alt="" 
src="links/level8.png"></DIV>
<DIV class=ax1><IMG 
style="MARGIN: -180px 0px 0px 220px; WIDTH: 114px; HEIGHT: 83px" alt="" 
src="links/api.png"></DIV></DIV>
<DIV id=topcontent>
<STYLE>.ExternalClass #ecxthecssawards {
	Z-INDEX: 555; POSITION: fixed; TOP: 0px; RIGHT: 0px
}
#designawards {
	Z-INDEX: 1101; POSITION: absolute; TOP: 125px; RIGHT: 0px
}
.ExternalClass #ecxthecssawards A {
	TEXT-INDENT: -8000px; WIDTH: 69px; DISPLAY: block; HEIGHT: 105px
}
</STYLE>


<DIV id=linky>



<DIV class=abstract>


<P align="center">
<!--<body class="dtu">!-->
<div class="yumocn">
<div class="yumocn2">
<div class="hend">
<dl><img src="links/indexdh1.jpg"></dl>
<dl>
<li class="hendbk"><a href="../../index.jsp" target="_top">首页</a></li>
<li class="hendbk"><a href="problem.jsp" target="_top">开始考试</a></li>
<li class="hendbk"><a href="student_update.jsp" target="_top">个人信息</a></li>
<li class="hendbk"><a href="problem_score_list.jsp" target="_top">查看成绩</a></li>
<li class="hendbk"><a href="problem_history_select.jsp" target="_top">历史记录</a></li>
<li class="hendbk"><a href="aboutus.jsp" target="_top">关于我们</a></li>
<li><a href="links.jsp" target="_top">友情链接</a></li>
</dl>
 <img src="links/indexdh4.png"></div>
<div class="logo"><!--<dl><img src="./links/logo.jpg"></dl><dl><img src="./links/list0.jpg"></dl>!--></div>
<div class="Nav">
  <dl><img src="links/list2.jpg"></dl>
  <div class="new"> 
    <dl>
      <dt class="Navdt"><font class="Navzt">&nbsp;</font><span class="STYLE2">      </span></a>		       </dt>
  </dl>
  <dl class="Navdt">
  <%
           /*
           *验证权限
           *author 宋智洋
           *data 2011-11-26
           *update 胡瑾
           *data 2011-12-01
           *增加了userId
           */
			String flag = (String)session.getAttribute("flag");
			String userId = (String)session.getAttribute("userId");
			int studentId = Integer.parseInt(userId);
						
			if (flag != "student"|| flag==null )
			{
				%>
      <script language="javascript">
				     alert("您没有学生权限,请重新登录"); window.location.href="../../index.jsp";
				    </script>
      <%
				
			}else{
				Student student = new Student();
				StudentControl sc = new StudentControl();
				student = sc.GetStudent(studentId);
				out.print("<p>"+student.getStudentName()+"   欢迎您</p>");
			}
           %>
  
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </dl>
  <dl  class="Navdt">初中数学自适应考试系统 </dl>
  </div>
  <dl><img src="links/list4.png"></dl></div>
  </div>
</div>
<div class="Content">
<div class="Contentzb"><img src="links/dtu01.jpg"></div>
<div class="Contentz">
  <form name="form1" method="get" action="http://www.yumocn.com/search.asp" onsubmit="return (form1.key.value!=&#39;&#39;)">
<div class="Search">
<li class="Searchzt">&nbsp;</li>
<li>&nbsp;</li>
<li>&nbsp;</li>
<li class="Searchzt">&nbsp;</li>
	  </div>
</form>
<div class="works">
    <div>
     <%
			//这个页是首页,也就是为了选取第一题,并且传第一题的参数而设置的页,之后不会用到.
			
			int n=1;//n是对题目进行计数,n初值为1,说明已经做了一道题了
			double cita=0.0;//cita为能力值的估计,初值为0
			double ffirst=0;//f的一次导叠加
			double fsecond=0;//f的二次导叠加
			request.setCharacterEncoding("utf-8");//utf-8的编码方式
			Problem problem = new Problem();
			ProblemControl pc = new ProblemControl();
			
			/*
			选择第一题
			@author vinllen
			2011-12-6
			@update 宋智洋 添加判重
			*/
			List<Integer> idList = new ArrayList<Integer>();
			
			others fi = new others();
			int markMax = fi.getMaxId();
			//System.out.println("最大题数" + markMax);
			int proNr = fi.choseProble(markMax);
			
			int id=proNr;//直接选择题库中的第一题 作为显示的第一题
			idList.add(id);
			session.setAttribute("idList", idList);
			
			problem = pc.GetProblem(id);//通过id获取题目
			//System.out.println(id);
			
			
			/*获取系统时间
			by vinllen
			2011-11-27
			*/
			Calendar ca = Calendar.getInstance();  
			int year = ca.get(Calendar.YEAR);//获取年份  
			int month=ca.get(Calendar.MONTH) + 1;//获取月份   
			int day=ca.get(Calendar.DATE);//获取日  
			int minute=ca.get(Calendar.MINUTE);//分   
			int hour=ca.get(Calendar.HOUR);//小时
			int second=ca.get(Calendar.SECOND);//秒  
			
			String nowDate = year + "-" + month+ "-" + day + "-"+ hour + ":" + minute + ":" + second;
			String startDate = nowDate;
			//System.out.println("nowDate ++ " + nowDate);
		%>
      <!--将id n cita 一阶导 二阶导 传给problem_chuli 以便判断下一题-->
      <!--  下面一行添加nowDate-->
      <form name="form1" method="post" action="problem_chuli.jsp?id=<%=id%>&amp;n=<%=n%>&amp;cita=<%=cita%>&amp;ffirst=<%=ffirst%>&amp;fsecond=<%=fsecond%>&amp;nowDate=<%=nowDate%>&amp;startDate=<%=startDate%>">
        <table width="777">
          <tr>
            <td style="background:transparent" colspan="6"><%=n%> <%=problem.getContent()%></td>
          </tr>
          <tr>
            <td style="background:transparent" width="22%"><input type="radio" name="choose" value="A">
              A. <%=problem.getA()%></td>
            <td style="background:transparent" width="22%"><input type="radio" name="choose" value="B">
              B. <%=problem.getB()%></td>
            <td style="background:transparent" width="22%"><input type="radio" name="choose" value="C">
              C. <%=problem.getC()%></td>
            <td style="background:transparent" width="22%"><input type="radio" name="choose" value="D">
              D. <%=problem.getD()%></td>
            <td style="background:transparent"><span class="STYLE2">区分度 </span><%=problem.getAa()%></td>
            <td style="background:transparent"> <span class="STYLE2">难度</span><%=problem.getBb()%></td>
          </tr>
        </table>
        <input  name="Submit" type="image" src="links/tj.jpg" value="确定" class="btn_submit" onclick="javascript:void(0)">
      </form>
    </div>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
</div>

<!--
 <form name="form2" method="post" action="">
<div align="center" class="works page"> 
                <li class="Searchzt">总71 个1/4 &nbsp;</li>
                
               <li> <a href="http://www.yumocn.com/works.asp?intpageno=1">第一页</a></li> 
                <li><a href="http://www.yumocn.com/works.asp?intpageno=1">上一页</a></li><li><a href="http://www.yumocn.com/works.asp?intpageno=2">下一页</a></li><li> <a href="http://www.yumocn.com/works.asp?intpageno=4">尾页</a> </li><li>&nbsp;跳到 
                <input name="goto" id="goto2" type="text" size="4" class="srk0">
                页 
                <input type="button" name="Input" value="GO" class="go" onclick="location.href=&#39;/works.asp?intpageno=&#39;+document.all[&#39;goto&#39;].value;"></li>
                <script language="javascript">
				function click() {
				if (event.keyCode=="13") {
				location.href='/works.asp?intpageno='+document.all['goto'].value;
				}
				}
				document.onkeydown=click
		</script>
              </div>
			    </form>!-->
</div>

<div class="Contentzb"><!--<img src="./links/dtu02.jpg">!--></div>
<div class="end"><dl><img src="links/yw1.jpg"></dl>
<dl class="endw">
    2011-2012 &#169;  Copyright Rll Rights Resered <a href="http://www.nenu.edu.cn/" target="_blank"><font color="#919191">东北师范大学</font></a>&nbsp;&nbsp;
</dl>
<dl><img src="links/yw2.png"></dl>
<dl class="end2">&nbsp;</dl>
</div>
<div id="Layer1" style="visibility: hidden;"><script language="javascript" src="links/click.aspx"></script><a href="http://countt.51yes.com/index.aspx?id=378596278" target="_blank"><img width="20" height="20" border="0" hspace="0" vspace="0" src="links/count6.gif" alt="51YES网站统计系统"></a><iframe marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="./links/sa.htm" height="0" width="0"></iframe></div> 
</div>


<script type="text/javascript" src="links/an.js"></script>
</P></DIV>

</BODY>
</html>
